<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<head>
<title>회원 가입 Spring 기반 게시판</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" media="all" href="../../css/bbs.css" th:href="@{/css/bbs.css}" />

<script>
	function userJoin() {
		return true;
	}
</script>
</head>

<body>
	<div th:include="bbs_header.html::bbs_header"></div>
	
	<div>

		<h2 th:text="#{bbs.title}">Spring 기반 게시판</h2>

		<form action="" method="POST">

			<fieldset>
				<legend> 회원 가입 </legend>

				<ul class="errorlist">
					<li th:text="${ svrMsg }">메시지</li>
					<li th:if="${ errMsg != null }" th:text="${ errMsg }">에러</li>
				</ul>

				<div>
					<label for="userName"> 아이디 </label> <input type="text" id="userName" name="userName" th:value="${ userName }" value="" />
				</div>
				<div>
					<label for="password"> 패스워드 </label> <input type="password" id="password" name="passwd" value="" />
				</div>
				<div>
					<label for="passwordConfirm"> 패스워드 확인 </label> <input type="password" id="passwordConfirm" name="passwdConfirm" value="" />
				</div>
				<div>
					<label for="isAdmin">관리자</label> <input type="checkbox" id="isAdmin" name="isAdmin" th:checked="${ isAdmin }" th:value="${ isAdmin }" value=""
						onclick="this.value = this.checked" />
				</div>
				<div>
					<br />
				</div>
				<div>
					<label for="login"> 회원 가입 </label>
					<button type="submit" onclick="return userJoin();">회원 가입</button>
				</div>

			</fieldset>

		</form>

	</div>
	
	<br/>
	<div th:include="bbs_footer.html::bbs_footer"></div>

</body>
</html>